package com.huishao.demo.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (DailyForm)表实体类
 *
 * @author huishao
 * @since 2023-02-17 13:55:39
 */
@ApiModel("DailyForm")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("daily_form")
public class DailyForm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 文本内容 存放 json
     */
    @ApiModelProperty("文本内容 存放 json")
    private String value;
    /**
     * 填写状态
     */
    @ApiModelProperty("填写状态")
    private String status;
    /**
     * 填写来源ip
     */
    @ApiModelProperty("填写状态")
    @TableField(value ="writer_from")
    private String writerFrom;

    // fill = FieldFill.INSERT ~ fill = FieldFill.INSERT_UPDATE 自动填充时间！

}

